package com.gwz.sys.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.gwz.common.BaseController;
import com.gwz.sys.entity.Hotel;
import com.gwz.sys.service.IHotelService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gwz
 * @since 2019-01-04
 */
@RestController
@RequestMapping("/hotel")
public class HotelController extends BaseController {
	
	
	@Autowired
	private IHotelService hotelService;
	
	@RequestMapping("loadAllHotel")
	public List<Hotel> loadAllHotel(){
		return hotelService.list();
	}
}

